package durak.common.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class GameTableState implements Serializable {

	/**
     * 
     */
	private static final long serialVersionUID = 811887433465720864L;
	private CardsOnTheTable cardsOnTheTable;
	private String currentAttacker;
	private String currentDefender;
	private boolean gameStarted;
	private boolean isGameStillRunning;
	private Card kozar;
	private List<CommonPlayerData> players;
	private int deckSize;
	

	/**
	 * 
	 */
	public GameTableState() {
		players = new ArrayList<CommonPlayerData>();
	}

	public CardsOnTheTable getCardsOnTheTable() {
		return cardsOnTheTable;
	}

	public String getCurrentAttacker() {
		return currentAttacker;
	}

	public String getCurrentDefender() {
		return currentDefender;
	}

	public Card getKozar() {
		return kozar;
	}

	public List<CommonPlayerData> getPlayers() {
		return players;
	}

	public boolean isGameStillRunning() {
		return isGameStillRunning;
	}

	public void setCardsOnTheTable(CardsOnTheTable cardsOnTheTable) {
		this.cardsOnTheTable = cardsOnTheTable;
	}

	public void setCurrentAttacker(String currentAttacker) {
		this.currentAttacker = currentAttacker;
	}

	public void setCurrentDefender(String currentDefender) {
		this.currentDefender = currentDefender;
	}

	public void setGameStillRunning(boolean isGameStillRunning) {
		this.isGameStillRunning = isGameStillRunning;
	}

	public void setKozar(Card kozar) {
		this.kozar = kozar;
	}

	public void setPlayers(List<CommonPlayerData> players) {
		this.players = players;
	}

	/**
	 * @return the deckSize
	 */
	public int getDeckSize() {
		return deckSize;
	}

	/**
	 * @param deckSize the deckSize to set
	 */
	public void setDeckSize(int deckSize) {
		this.deckSize = deckSize;
	}

	/**
	 * @return the gameStarted
	 */
	public boolean isGameStarted() {
		return gameStarted;
	}

	/**
	 * @param gameStarted the gameStarted to set
	 */
	public void setGameStarted(boolean gameStarted) {
		this.gameStarted = gameStarted;
	}

}
